package com.zhentao.model.common.admin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName admin_user
 */
@TableName(value ="admin_user")
@Data
public class AdminUser implements Serializable {
    /**
     * 管理员用户主键
     */
    @TableId(value = "admin_user_id", type = IdType.AUTO)
    private Integer adminUserId;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;
    /**
     * 盐
     */
    @TableField(value = "salt")
    private String salt;

    /**
     * 账号状态（0禁用 1启用）
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 创建日期
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 最近登录日期
     */
    @TableField(value = "new_login_time")
    private Date newLoginTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}